<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础模板</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <button @click="type=1">新闻</button>
        <button @click="type=2">音乐</button>
        <button @click="type=3">电影</button>
        <button @click="type=4">运动</button>
        <ul v-show="type===1">
            <li>40秒沉浸式看问天出征</li>
            <li>云南楚雄一乐园取消“夏日祭”</li>
            <li>31省份昨日新增本土98+770热</li>
        </ul>
        <ul v-show="type===2">
            <li>夜的第七章</li>
            <li>最伟大的作品</li>
            <li>本草纲目</li>
        </ul>
        <ul v-show="type===3">
            <li>加勒比海盗：世界尽头</li>
            <li>奇异博士2疯狂多元宇宙</li>
            <li>肖申克的救赎</li>
        </ul>
        <ul v-show="type===4">
            <li>苏翊鸣一鸣惊人</li>
            <li>谷爱凌夺得双板滑雪金牌</li>
            <li>女足踢赢韩国队</li>
        </ul>
    </div>
    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    type:1
                }
            }
        })
    </script>
</body>

</html>